//
//  NSObject+LBRouter.m
//  LBRouter
//
//  Created by WuShiHai on 19/5/24.
//  Copyright (c) 2019 Lebbay. All rights reserved.
//

#import "NSObject+LBRouter.h"
#import "LBRouter.h"
#import "LBRouterHandler.h"

@implementation NSObject (LBRouter)

+ (BOOL)isSelfClassRouter:(NSString *)URLString {
    
    NSString *router = [LBRouterHandler routerWithNativeClass:[self class]];
    router = [LBRouter matchPathWithPath:router];
    URLString = [LBRouter matchPathWithPath:URLString];
    
    if (router && [router isEqualToString:URLString]) {
        return YES;
    }
    
    return NO;
}

@end
